<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String contextPath = request.getContextPath();
%>
<script>
	$(function() {
		$(".testOrder >a").click(function() {
			window.location.href = $("#contextPath").val() + "/index/jszksyy";
		})
	});
</script>
<!-- left menu starts -->
<input type="hidden" value="<%=contextPath%>" id="contextPath" />
<div class="col-sm-2 col-lg-2">
	<div class="sidebar-nav">
		<div class="nav-canvas">
			<div class="nav-sm nav nav-stacked"></div>
			<ul class="nav nav-pills nav-stacked main-menu">
				<c:if test="${!empty user.studentMes }">
					<li class="nav-header">考生登录</li>
				</c:if>
				<c:if test="${!empty user.teacherMes }">
					<li class="nav-header">考官登录</li>
				</c:if>
				<c:if test="${!empty user.studentMes }">
					<li class="accordion testOrder"><a href="javascript:void(0)"><i
							class="glyphicon glyphicon-plus"></i><span> 考试预约/取消</span></a></li>
					<li class="accordion"><a href="#"><i
							class="glyphicon glyphicon-plus"></i><span> 考试信息查询与统计</span></a>
						<ul class="nav nav-pills nav-stacked">
							<li><a
								href="<%=request.getContextPath()%>/index/showTestMes">考试安排</a></li>
							<li><a href="<%=request.getContextPath()%>/index/showMarks">考试成绩查询</a></li>
						</ul></li>
				</c:if>
				<li class="accordion"><a href="#"><i
						class="glyphicon glyphicon-plus"></i><span> 公告</span></a>
					<ul class="nav nav-pills nav-stacked">
						<li><a href="<%=request.getContextPath()%>/index/noticeList">信息公告</a></li>
					</ul></li>
				<c:if test="${!empty user.teacherMes }">
					<li class="accordion"><a href="#"><i
							class="glyphicon glyphicon-plus"></i><span> 成绩管理</span></a>
						<ul class="nav nav-pills nav-stacked">
							<li><a href="<%=request.getContextPath()%>/index/cjsc">成绩管理</a></li>
						</ul></li>
				</c:if>
			</ul>
		</div>
	</div>
</div>